// 购物车
import api from '../../lib/request';
export default({
	namespaced: true,
	state:()=>{
		return {
			carts:[]
		}
	},
	mutations:{
		update_carts(state,payload){
			state.carts += payload
		},
	},
	 actions: {
		 update_uid_async  (context) {
			 api.get('/shopping/findAll').then(res=>{
				context.commit('update_carts',res.data)
			})
		 }
		 
	 }
})